package com.mxpio.erp.common.plm.entity;

import com.mxpio.erp.common.jpa.policy.ResCodeGeneratorPolicy;
import com.mxpioframework.jpa.annotation.Generator;
import com.mxpioframework.security.entity.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

@Data
@EqualsAndHashCode(callSuper = false)
@Entity
@Table(name = "MB_ERP_PLM_PROJECT_USER_RESOURCE")
@Schema(description = "用户资源表")
public class UserResource extends BaseEntity {

    @Id
    @Column(name = "USER_CODE_")
    @Generator(policy = ResCodeGeneratorPolicy.class)
    @Schema(description = "用户编码")
    private String userCode;

    @Column(name = "USER_NAME_")
    @Schema(description = "用户名称")
    private String userName;

    @Column(name = "PRO_ROLE_")
    @Schema(description = "项目角色")
    private String proRole;

    @Column(name = "USER_BY_DEP_ID_")
    @Schema(description = "所属部门")
    private String userByDepId;

}
